export const userRules = {
    username:[
        { required:true,message:"用户名不能为空", trigger: 'blur' },
        { min:3,message:"用户名长度不能小于3",trigger: 'blur' }
    ],
    password:[
        { required:true,message:"密码不能为空",trigger: 'blur' },
        { min:3,message:"密码长度不能小于3",trigger: 'blur' }
    ],
    email:[
        { pattern:/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,message:"请输入有效邮箱",trigger: 'blur' }
    ],
    mobile:[
        { pattern:/^1\d{10}$/,message:"请输入有效手机号码",trigger: 'blur'  }
    ]
}